/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoo.psdk;

import android.content.Context;
import android.text.TextUtils;
import com.qihoo.psdk.util.a;
import org.json.JSONObject;

public class j {
    private static String a = "QHeader";
    private String b = "";
    private String c = "";
    private String d = "";
    private String e = "";
    private String f = "";
    private String g = "";
    private String h = "";
    private String i = "";
    private String j = "";
    private String k = "";
    private String l = "";
    private String m = "";
    private String n = "";
    private String o = "";
    private String p = "";
    private String q = "";
    private String r = "";
    private String s = "";
    private String t = "";
    private String u = "";
    private String v = "";
    private String w = "";
    private String x = "";
    private long y = 0L;
    private String z = "";
    private String A = "";
    private String B = "";
    private String C = "";
    private String D = "";
    private String E = "";
    private String F = "";
    private String G = "";
    private String H = "";

    protected j(Context paramContext, String paramString) {
        this.b = n.a(paramContext);
        this.c = n.b(paramContext, "QHOPENSDK_APPKEY");
        this.d = n.b(paramContext, "QHOPENSDK_APPID");
        this.e = n.b(paramContext, "QHOPENSDK_CHANNEL");
        this.f = a.c(paramContext);
        this.g = n.d(paramContext);
        this.h = n.e(paramContext);
        this.j = n.g(paramContext);
        this.l = n.a();
        this.m = n.b();
        this.n = n.c();
        this.q = n.h(paramContext);
        this.r = n.i(paramContext);
        this.s = n.j(paramContext);
        this.t = n.f();
        this.u = n.h();
        this.v = n.i();
        this.i = h.b(paramContext, "lastVersion", "");
        this.w = n.l(paramContext);
        this.x = n.m();
        this.y = n.a(paramContext, this.w, this.e, this.f);
        this.o = n.d();
        this.p = n.e();
        this.k = n.c(paramContext);
        this.z = "360push";
        this.A = "mgame";
        this.B = paramString;
        this.C = f.c();
        this.D = f.d();
        this.E = n.p(paramContext);
        this.F = n.q(paramContext);
        this.G = k.b;
        this.H = n.o(paramContext);
    }

    protected JSONObject a() {
        JSONObject localJSONObject = new JSONObject();
        try {
            localJSONObject.put("appName", this.b);
            localJSONObject.put("appKey", this.c);
            localJSONObject.put("appId", this.d);
            localJSONObject.put("channel", this.e);
            localJSONObject.put("packname", this.f);
            localJSONObject.put("versionName", this.g);
            localJSONObject.put("versionCode", this.h);
            if (!(TextUtils.isEmpty(this.i)))
                localJSONObject.put("lastVersion", this.i);
            localJSONObject.put("netType", this.j);
            localJSONObject.put("language", this.l);
            localJSONObject.put("country", this.m);
            localJSONObject.put("model", this.n);
            localJSONObject.put("imei", this.q);
            localJSONObject.put("operator", this.r);
            localJSONObject.put("screen", this.s);
            localJSONObject.put("manufacturer", this.t);
            localJSONObject.put("osVersion", this.u);
            localJSONObject.put("sdkVersion", "1.1.1.140807");
            localJSONObject.put("os", "Android");
            localJSONObject.put("cpu", this.v);
            localJSONObject.put("rid", this.w);
            localJSONObject.put("tid", this.x);
            localJSONObject.put("ttimes", this.y);
            if (!(TextUtils.isEmpty(this.k)))
                localJSONObject.put("mac", this.k);
            localJSONObject.put("board", this.o);
            localJSONObject.put("brand", this.p);
            localJSONObject.put("mTag", this.z);
            localJSONObject.put("sTag", this.A);
            localJSONObject.put("m1", this.E);
            localJSONObject.put("m2", this.F);
            if (!(TextUtils.isEmpty(this.G)))
                localJSONObject.put("qid", this.G);
            localJSONObject.put("registerId", this.B);
            if (!(TextUtils.isEmpty(this.C)))
                localJSONObject.put("alias", this.C);
            if (!(TextUtils.isEmpty(this.D)))
                localJSONObject.put("tags", this.D);
            localJSONObject.put("ctime", this.H);
        } catch (Exception localException) {
            com.qihoo.psdk.util.h.a(a, localException);
        } catch (Error localError) {
            com.qihoo.psdk.util.h.a(a, localError);
        }
        return localJSONObject;
    }
}